package com.shujia.innerclass_;

public class Outter2 {

    public static void main(String[] args) {
        Outter2 outter2 = new Outter2();
        outter2.eat();
    }


    public void eat() {
        int a = 10;
        // 局部内部类, 对外不可见
        class Inner {
            private String name = "zs";

            public void show() {
                System.out.println(name);
            }
        }

        Inner inner = new Inner();
        inner.show();
    }

}

